﻿using System;

using AutoMapper;

namespace Fuse8.ContentManagementFramework.SystemFacade.Common
{
    public class AutoMapperModelMapper : IModelMapper
    {
        #region IModelMapper Members

        public void Map<TSource, TDestination>(TSource source, TDestination destination)
        {
            Mapper.Map(source, destination);
        }

        public TDestination Map<TSource, TDestination>(TSource source)
        {
            return Mapper.Map<TSource, TDestination>(source);
        }

        #endregion
    }
}
